<template>
    <div>
        Navbar
        <button @click="cli()">click</button>
    </div>
</template>

<script>
export default {
    data() {
        return {
            childTitle:'child-111'
        }
    },
    methods: {
        cli(){
            // console.log(childTitle);    
            this.$emit('event',this.childTitle)        
        }
    }
}
</script>

<style scoped>
div{
    background-color: yellow;
}
</style>